package 循环;

import java.util.Scanner;

public class demo09 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        boolean a =true;
        int c =0;
        while (a){
            System.out.println("请输入一个字母：");
            char b =sc.next().charAt(0);
            if (b>='a'&&b<='z'){
                c++;
            }
        }
        System.out.println("大写字母个数为"+c+"个");
    }
}
